//
//  ViewController.swift
//  C022_test_simple_uiview_subclass_init
//
//  Created by yao_yu on 15/7/15.
//  Copyright © 2015年 yao_yu. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        var simpleView = SimpleView()
        assert(simpleView.subviews.count == 1, "只应创建一个子视图")
        
        simpleView = SimpleView(frame: CGRectMake(0, 0, 300, 300))
        assert(simpleView.subviews.count == 1, "还是只应创建一个子视图")

    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

